package com.wuliu.dao;

import com.wuliu.model.News;

import java.util.List;

public interface NewsDAO {
    public List<News> findAll();
    public List<News> findByCid(int cid);
    public News findById(int id);
    public List<News> findAllAndClass();
    public News findByIdAndClass(int id);
    public void add(News news);
    public void deleteById(int id);
    public void update(News news);
}
